import {request} from "umi"

export let getDetail=()=>{
  return request("/sypt/answer/reply")
}
export let getanswerList=(answerId:string)=>{
  return request(`/sypt/answer/${answerId}`)
}
export let getCommitList=(answerId:string)=>{
  return request(`/sypt/reply/answerList?answerId=${answerId}`,{answerId})
}
export let getUpdataCommit=(answerId:string,questionValue:string)=>{
  return request("/sypt/answer/reply",{
    method:"post",
    data:{
      answerId,
      questionValue
    }
  })
}